From e54e1009a8eb99922cb243ef84ff89f9b9179726 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Fri, 20 Jul 2007 10:41:31 +0100 Subject: [PATCH] Xen PM: Remove useless __sync_lazy_execstate(). Signed-off-by: Keir Fraser --- xen/arch/x86/acpi/power.c | 3 --- xen/arch/x86/acpi/suspend.c | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/xen/arch/x86/acpi/power.c b/xen/arch/x86/acpi/power.c index 3435955cd2..47d86cb3ef 100644 --- a/xen/arch/x86/acpi/power.c +++ b/xen/arch/x86/acpi/power.c @@ -119,9 +119,6 @@ static int enter_state(u32 state) if ( (state <= ACPI_STATE_S0) || (state > ACPI_S_STATES_MAX) ) return -EINVAL; - __sync_lazy_execstate(); - pmprintk(XENLOG_INFO, "Flush lazy state\n"); - if ( !spin_trylock(&pm_lock) ) return -EBUSY; diff --git a/xen/arch/x86/acpi/suspend.c b/xen/arch/x86/acpi/suspend.c index 19bb2d3d67..3d44569a13 100644 --- a/xen/arch/x86/acpi/suspend.c +++ b/xen/arch/x86/acpi/suspend.c @@ -38,6 +38,7 @@ void restore_rest_processor_state(void) struct tss_struct *t = &init_tss[cpu]; struct vcpu *v = current; + /* Rewriting the TSS desc is necessary to clear the Busy flag. */ set_tss_desc(cpu, t); load_TR(cpu); -- 2.30.2